<extend name="Index/index" />
<block name="nav1">
    <ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="#">Admin</a>
        </li>
        <li class="active">权限表</li>
    </ul><!-- .breadcrumb -->
</block>

<block name="nav2">
        <h1>
            权限表
        </h1>
</block>
<block name="main">
    <table class="table table-hover mt20">
        <tr>
            <td>权限ID</td>
            <td>节点名</td>
            <td>控制器名</td>
            <td>方法</td>
            <td>操作</td>
        </tr>
        <foreach name="list" item="v">
        <tr>
            <td><{$v.id}></td>
            <td><{$v.name}></td>
            <td><{$v.mname}></td>
            <td><{$v.aname}></td>
            <td class="col-md-2">
                <a href="<{:U('edit',array('id'=>$v['id']))}>" class="btn btn-primary">编辑</a>
                <a href="<{:U('del',array('id'=>$v['id']))}>" class="btn btn-danger">删除</a>
            </td>
        </tr>
        </foreach>
    </table>
    </block>
